<?php
/**
 * Created by PhpStorm.
 * User: matengfei
 * Date: 15/8/22
 * Time: 下午10:18
 */

if (!defined('BASEPATH')) exit('No direct script access allowed');

class index extends REST_Controller
{

    function __construct()
    {
        parent::__construct();
        $this->load->helper('url');
        $this->load->model(array("MIndex"));
    }


    /*
    public function index_get()
    {
        $this->load->view('test2.html');
    }
    */

    public function  index_get()
    {

        $result = $this->MIndex->get();

        {
            $data = $this->formatData(0, '成功', $result);
            $this->response($data, 200);
        }

    }







}